#ifndef _RINGBUFFER_H_
#define _RINGBUFFER_H_

#include "buffer.h"
#include "ringbuf.h"

class ringbuffer : public buffer
{
public:
	ringbuffer(size_t size);
	~ringbuffer(void);

	size_t get_data_size();
	size_t get_free_size();
	size_t write_buffer(const void *data, size_t count);
	size_t read_buffer(void *data, size_t count);	
	void flush_buffer();
	
private:
	void free_buffer();
	RingBuf *mBuf;
};



#endif
